package com.demo.common.feign;

import com.demo.common.entity.User;
import com.demo.common.util.R;
import org.springframework.stereotype.Component;

@Component
public class UserFeignFallBack implements UserFeign {
    @Override
    public R getUser(User user) {
        user.setName("查询异常");
        return new R<>(user);
    }

    @Override
    public R saveUser() {
        return new R<>();
    }
}
